home *** CD-ROM | disk | FTP | other *** search
- On 01-Oct-97, mtl.wberg@swipnet.se wrote:
- >Is it possible to make amos 2 change lines with another assii value than
- >then MS-DOS chr$(13)?
-
- Sure is...
-
- >When i read a text file without that i will recive an error mezz
- >(input to long),
- >Ex
- >open in 1,a$
- >repeat
- >input #1,b$
- >until pof(1)=lof(1)
-
- Nah! You don't wanna do it like that!
-
- F$="yourtextfilepath"
- BNK=10 : Rem Any Bank
- Open in 1,F$
- L=Lof(1)
- Close 1
- Reserve As Data BNK,L
- Bload F$,Start(BNK)
-
- ST=Start(BNK)
-
- Do
- Exit If ST=>Length(BNK) : Rem I think this may be wrong!!!
- A$=Peek$(ST,79,Chr$(10)) : Rem 79 chars and Chr$(10) checked.
- Add ST,Len(A$)+1
- Print A$
- Loop
-
- The above is just from my memory, so it may not be 100%! You can
- change the Chr$(10) to Chr$(13) if reading MS-DOS files.
-
- If that's not what your after, I'm sure that the LDos Ext has some
- commands to change the EOL character search.
-
- eg.
-
- Lset Eoln 13 : Rem MS-DOS check
-
- or
-
- Lset Eoln 10 : Rem Amiga-DOS check
-
- Check out the LDos dox for more great string handling....
-
- Hope this has helped :)
-
- Andy Gee!
-
- --
- _ _ _ _
- _)\ ____)\ _)\ _____)\ #cONTACT mE fOR mORE iNFO#
- /o° \ /o°____) /o° \ /o°_____) #oN aREA51 rELEASES aLSO.#
- // \ // / __ // \\\ \____
- /. O \ /. /___\ \ /. O \\____ \ *andy@agasinc.demon.co.uk*
- / _ \/ Y Y \/ _ \ ___\\ \
- \ __/ \___/\_________ /\___/ \ __//______/ Team *AMOS*
- Y Y Y Y
- L8R : ° · #cOMING sOON'ish#
- . Andy Gibson (AGAS Productons) *Roswell Gfx Adv*
- · -=<(aka SKiDZ/A51)>=- 9T7
-
-
-